<template>
  <div class="addAdd">
    <common-head title="地址添加"></common-head>
    <div class="main">
      <van-address-edit
        :area-list="dataJson"
        show-set-default
        :area-columns-placeholder="['请选择', '请选择', '请选择']"
        @save="onSave"
      />
    </div>
  </div>
</template>

<script>
import CommonHead from "components/CommonHead";
import { mapState, mapMutations } from "vuex";
export default {
  data() {
    return {};
  },
  methods: {
    onSave(ads) {
      // 太麻烦不写
    }
  },
  computed: {
    ...mapState(["dataJson"])
  },
  components: {
    CommonHead
  }
};
</script>

<style lang="less" scoped>
.addAdd {
  /deep/.van-nav-bar {
    background: #fff !important;
    .van-icon-arrow-left {
      color: #333 !important;
    }
    .van-nav-bar__title {
      color: #333 !important;
    }
  }
  .main {
    padding-top: 65px;
    padding-bottom: 50px;
    z-index: 0;
    .van-address-edit {
      /deep/.van-cell {
        line-height: 60px !important;
        .van-cell__title {
          font-size: 16px;
          color: #aaa;
        }
        .van-switch--on {
          background: #1fdb9b;
        }
      }
    }
    /deep/.van-button--danger {
      background: linear-gradient(
        90deg,
        #45dfab 0,
        #4addbd 70%,
        #4fdace 100%
      ) !important;
      border: 1px solid transparent !important;
    }
  }
}
</style>